<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 报损列表</title>
    <link rel="shortcut icon" href="../content/static/img/favicon.ico">
    <link href="../content/css/common_modal.css" rel="stylesheet">
    <link href="../content/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../content/static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="../content/static/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="../content/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../content/js/lib/vue/select2.min.css" rel="stylesheet">
    <link href="../content/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="../content/js/lib/calendar/calendar.css" rel="stylesheet">
    <link href="../content/js/lib/calendar/scrollbar.css" rel="stylesheet">
    <style>
        .fa-female:before {
            color: #fb7cd5;
        }
        .fa-location-arrow:before {
            color: rebeccapurple;
        }
        .fa-mobile-phone:before, .fa-mobile:before{
            color: black;
        }
        .fa-map-marker:before {
            color: #1ab394;
        }
        table-th{
            font-size: 12px;
            font-family: tahoma, "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
            line-height: 1.42857143;
            color: #333;
            background-color: #f5f5f5;
        }
        table tr{ height:40px;}
        #productTree {
            width: 320px;
            max-height: 376px;
            min-height: 32px;
            overflow-y: auto;
            padding: 10px 10px 0;
        }
        .projectTreeWrap {
            top:148px !important
        }
    </style>
</head>

<body class="content-container">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <ol class="breadcrumb">
                            <li>
                                <a>库存管理</a>
                            </li>
                            <li>
                                <a>报损列表</a>
                            </li>
                        </ol>
                    </div>
                    <div class="content-wrapper">
                        <div class="search-condition">
                            <div>
                                <div class="filter-wrapper">
                                    <ul class="clearfix">
                                        <li class="filter-item ">
                                            <label>单据编号</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>商品名称</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>制单日期</label>
                                            <div>
                                                <div class="fill-wrapper fill-wrapper-auto">
                                                    <input id="costTimeStart" type="text" class="fill-item  revision-time"
                                                        readonly="readonly">
                                                </div>
                                                <div class="fill-desc">到</div>
                                                <div class="fill-wrapper fill-wrapper-auto">
                                                    <input id="costTimeEnd" type="text" class="fill-item  revision-time"
                                                        readonly="readonly">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>报损仓库</label>
                                            <div>
                                                <select v-select2 id="warehouse">
                                                    <option value='0'>全部</option>
                                                    <option v-for="item in warehouseList" v-bind:value="item.Value"
                                                        v-bind:selected="$index===0" v-text="item.Text"></option>
                                                </select>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>制单人</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        
                                        <li class="filter-item">
                                            <label class="checkbox-wrapper" style="width: 140px;"><input class="revision-checkbox"
                                                    type="checkbox" id="isEfficacious" /> 显示作废单</label>
                                        </li>
                                        <li class="filter-item">
                                            <a class="revision-btn revision-btn-search">搜索</a>
                                            <a href="javascript:;" class="more">更多<i class="revision-icon-more"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-12" style="padding: 12px 0px 12px 0px;">
                            <div class="alert alert-info" style="margin-bottom: 0px">
                                <a class="revision-btn" v-on:click="addShow()">新增报损</a>
                                <a class="revision-btn" v-on:click="addShow()">打印</a>
                                <span>总条数：<span>12 条</span></span>&nbsp;&nbsp;
                                <span>报损总数：<span>48</span>&nbsp;&nbsp;
                                <span>报损总金额：<span>812,000</span></span>
                            </div>
                        </div>
                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>制单日期</th>
                                    <th>单据编号</th>
                                    <th>报损仓库</th>
                                    <th>报损商品名称</th>
                                    <th>报损商品数量</th>
                                    <th>报损金额</th>
                                    <th>制单人</th>
                                    <th>备注</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>2018-12-20</td>
                                    <td>BS20181220004</td>
                                    <td>A仓</td>
                                    <td class="text-navy">后视镜</td>
                                    <td class="amount">25</td>
                                    <td class="amount">0.00</td>
                                    <td>老板</td>
                                    <td>后视镜镜片脱落</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>2018-12-22</td>
                                    <td>BS20181220005</td>
                                    <td>A仓</td>
                                    <td class="text-navy">底盘</td>
                                    <td class="amount">6</td>
                                    <td class="amount">812.00</td>
                                    <td>老板</td>
                                    <td>底盘型号不对</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>2018-12-22</td>
                                    <td>BS20181220019</td>
                                    <td>B仓</td>
                                    <td class="text-navy">雨刷</td>
                                    <td class="amount">17</td>
                                    <td class="amount">0.00</td>
                                    <td>老板</td>
                                    <td>骨架折断</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div style="display: none;" v-show="pageInit">
                <!-- 锁定仓库 -->
                <modal v-bind:show.sync="lookModal.show" v-bind:style="detailModal .style" v-bind:add-class="lookModal.addClass">
                    <h4 slot="header">锁定仓库</h4>
                    <div slot="body" class="clearfix">
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th>#序号</th>
                                        <th>仓库名称</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td>合肥汽贸</td>
                                        <td class="text-navy">锁定</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>A库存</td>
                                        <td class="text-navy">锁定</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>B库存</td>
                                        <td class="text-danger">解锁</td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </modal>
                <!-- 新增盘点 -->
                <modal v-bind:show.sync="addModal.show" v-bind:style="addModal .style" v-bind:add-class="addModal.addClass">
                    <h4 slot="header">新增盘点
                        <span class="title-tips">单据编号：<span>PD20181220005</span></span>
                        <span class="title-tips">制单日期：<span>2018-12-20 14:40:58</span></span>
                        <span class="title-tips">经办人：<span>当前登陆人</span></span>
                    </h4>
                    <div slot="body" class="clearfix">
                        <div class="panel blank-panel">
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a data-toggle="tab" href="#tab-4">扫码新增商品</a>
                                    </li>
                                    <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">手动新增商品</a>
                                    </li>
                                    <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">导入商品</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="panel-body">
                                <div class="tab-content">
                                    <div id="tab-4" class="tab-pane active">
                                        <form class="form-horizontal" novalidate="novalidate">
                                            <div class="form-group" style="margin-bottom:0px">
                                                <div class="col-sm-4">
                                                    <input class="fill-item timeChoose" placeholder="请输入或扫描商品编号/条形码/序列号"
                                                        type="text" style="border:2px solid #444" />
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                    <div id="tab-5" class="tab-pane">
                                        <a class="revision-btn" href="javascript:;" v-on:click="selectProduct()">选择商品信息</a>
                                    </div>
                                    <div id="tab-6" class="tab-pane">
                                        <a class="revision-btn" href="javascript:;">导入商品信息</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <div>
                                <h3 class="panel-title">商品信息 <span class="title-tips">单个盘点单可选最大产品数为100条(状态列需要监听，动态获取，实际数量比账面数量大则盘盈)</span></h3>
                            </div>
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th style="width: 50px;">状态</th>
                                        <th style="width: 70px;">序号</th>
                                        <th>商品名称/规格</th>
                                        <th style="width: 80px;">商品编号</th>
                                        <th style="width: 70px;">属性</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 70px;">账面数量</th>
                                        <th style="width: 80px;">实际数量</th>
                                        <th style="width: 80px;">条形码</th>
                                        <th style="width: 120px;">备注</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="item in productChooseList" v-bind:data-index="$index">
                                        <td><span class="amount">盘亏</span></td>
                                        <td><span v-text="$index+1"></span>
                                            <span style="padding: 0px 0px 0px 5px;"><a href="javascript:;">删除</a></span>
                                        </td>
                                        <td> <span v-text="item.productName"></span><span v-if="item.prope!=''">/</span><span
                                                v-text="item.prope"></span></td>
                                        <td class="text-navy"><span v-text="item.productCode"></span></td>
                                        <td><span v-text="item.prope"></span></td>
                                        <td><span v-text="item.spec"></span></td>
                                        <td class="text-navy"><span v-text="item.inventoryCount"></span></td>
                                        <td><input class="fill-item" type="text" value="{{item.stockCount}}"></td>
                                        <td><span v-text="item.barCode"></span></td>
                                        <td><input class="fill-item" type="text" value="{{item.remark}}"></td>
                                    </tr>
                                </tbody>
                            </table>
                            <div>
                                <h3 class="panel-title">盘点备注</h3>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">盘点备注</label>
                                <div class="col-sm-7">
                                    <textarea id="ccomment" name="comment" class="form-control" style="height: 64px;"></textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div slot="footer" style="text-align:center">
                        <a href="javascript:;" class="revision-btn"> 保存</a>
                        <a href="javascript:;"  class="revision-btn-default" v-on:click="this.addModal.close()"> 取消</a>
                    </div>
                </modal>
                <!-- 选择商品 -->
                <modal v-bind:show.sync="productSelectModal.show" v-bind:style="productSelectModal .style"
                    v-bind:add-class="productSelectModal.addClass">
                    <h4 slot="header">选择商品</h4>
                    <div slot="body" class="clearfix">
                        <div class="search-condition">
                            <div>
                                <div class="filter-wrapper">
                                    <ul class="clearfix">
                                        <li class="filter-item " style="width: 330px;">
                                            <label>商品编号</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>商品名称</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <a class="revision-btn" href="javascript:;">查询</a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th style="width: 50px;">
                                            <input class="revision-checkbox" type="checkbox" v-model="item.checked"
                                                v-on:click="productChooseClick(item)">
                                        </th>
                                        <th>商品名称/规格</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 50px;">图片</th>
                                        <th style="width: 70px;">账面数量</th>
                                        <th style="width: 80px;">库存数量</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="item in productListSelect">
                                        <td>
                                            <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)">
                                        </td>
                                        <td>
                                            <span v-text="item.productName"></span><span v-if="item.prope!=''">/</span><span
                                                v-text="item.prope"></span>
                                        </td>
                                        <td>
                                            <img style="height: 80px;width: 80px;margin-bottom: 6px;margin-top: 6px;float: left;"
                                                src="../content/static/img/no_pic.png">
                                        </td>
                                        <td><span v-text="item.spec"></span></td>
                                        <td class="text-navy"><span v-text="item.stockCount"></span></td>
                                        <td class="text-navy"><span v-text="item.inventoryCount"></span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                        <div style="color: #fb7cd5">此处前端分页处理/后端也行</div>
                    </div>
                </modal>
                <!-- 盘点详情 -->
                <modal v-bind:show.sync="detailModal.show" v-bind:style="detailModal .style" v-bind:add-class="detailModal.addClass">
                    <h4 slot="header">库存盘点详情
                        <span class="title-tips">盘点仓库：<span>默认仓库</span></span>
                        <span class="title-tips">单据编号：<span>PD20181220005</span></span>
                    </h4>
                    <div slot="body" class="clearfix">
                        <div class="col-sm-12" style="padding: 0px;">
                            <div class="alert alert-info" style="margin-bottom: 10px">
                                <span>盘赢金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span>盘亏金额：<span
                                        class="text-navy">810,0.00</span></span><br>
                                <span style="line-height: 25px">盘赢金额：<span>盘盈金额 = 成本价 × 盘盈数量</span></span><br>
                                <span>盘赢金额：<span>盘亏金额 = 成本价 × 盘亏数量</span></span>
                            </div>
                        </div>
                        <span class="title-tips" style="margin-left: 0px">制单时间：<span>2018-12-22</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">制单人：<span>老板</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">经办人：<span>老板</span></span>
                        <table class="table table-hover table-bordered" style="margin-top: 10px">
                            <thead>
                                <tr>
                                    <th style="width: 50px;">序号</th>
                                    <th>商品名称/规格</th>
                                    <th>商品编号</th>
                                    <th style="width: 50px;">属性</th>
                                    <th style="width: 50px;">单位</th>
                                    <th style="width: 50px;">账面数量</th>
                                    <th style="width: 50px;">实际数量</th>
                                    <th style="width: 70px;">盘亏数量</th>
                                    <th style="width: 80px;">盘亏金额</th>
                                    <th style="width: 70px;">盘盈数量</th>
                                    <th style="width: 80px;">盘盈金额</th>
                                    <th style="width: 80px;">备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>生活用品/2*2</td>
                                    <td>SP2018122500698</td>
                                    <td></td>
                                    <td>件</td>
                                    <td>230</td>
                                    <td>250</td>
                                    <td class="amount">0</td>
                                    <td class="amount">0</td>
                                    <td class="text-navy">20</td>
                                    <td class="text-navy">100</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>小米屏幕/180*60mm</td>
                                    <td>SP2018122500666</td>
                                    <td></td>
                                    <td>块</td>
                                    <td>230</td>
                                    <td>250</td>
                                    <td class="amount">0</td>
                                    <td class="amount">0</td>
                                    <td class="text-navy">20</td>
                                    <td class="text-navy">100</td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </modal>
            </div>
            <div class="treeWrap projectTreeWrap none" style="width:320px;z-index: 99999;">
                <div>
                    <input type="text" class="fill-item" v-model="treeModel.searchText" style="display:inline;width:140px;" />
                    <a class="revision-btn" style="cursor:pointer;margin-top: -3px;min-width: 56px;" v-on:click="treeModel.search">搜索</a>
                    <a class="revision-btn" style="cursor:pointer;margin-top: -3px;min-width: 56px;" v-show="treeModel.searchResultMax>0"
                        v-on:click="treeModel.searchNext">下一个</a>
                </div>
                <ul id="productTree" class="ztree" style="margin-left: -12px;"></ul>
                <div class="btn-wrap">
                    <a href="javascript:;" class="revision-btn-default width56">取消</a>
                    <a href="javascript:;" class="revision-btn width56">确定</a>
                </div>
            </div>
        </div>
    </div>
    <script src="../content/js/lib/vue/vue.min.js"></script>
    <script src="../content/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="../content/static/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="../content/static/js/plugins/iCheck/icheck.min.js"></script>
    <script src="../content/static/js/plugins/chosen/chosen.jquery.js"></script>
    <script src="../content/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="../content/js/lib/calendar/calendar.js"></script>
    <script src="../content/js/lib/calendar/scrollbar.js"></script>
    <script src="../content/js/lib/vue/vue-modal.js"></script>
    <script src="../content/js/lib/vue/vue-pagination.js"></script>
    <script src="../content/js/common.js"></script>
    <script src="../content/js/lib/vue/select2.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".i-checks").iCheck({
                checkboxClass: "icheckbox_square-green",
                radioClass: "iradio_square-green",
            });
            //时间验证
            var calObj = new $.Calendar({
                //time: true,
                skin: 'white'
            });
            $('#costTimeStart').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    endTime = $('#costTimeEnd').val();
                calObj.pick({
                    elem: this,
                    endDate: endTime
                });
            });
            $('#costTimeEnd').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    startTime = $('#costTimeStart').val();
                calObj.pick({
                    elem: this,
                    startDate: startTime
                });
            });
        });
        $("#warehouse").select2({
            width: "220px"
        });
        $("#checkedStatus").select2({
            width: "220px"
        });
        var vmData = {
            lookModal: {
                show: false,
                style: {
                    width: '580px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.detailModal.show = false;
                }
            },
            detailModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.detailModal.show = false;
                }
            },
            addModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.addModal.show = false;
                }
            },
            productSelectModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.productSelectModal.show = false;
                }
            },
            warehouseList: [{
                    "Text": "北京",
                    "Value": "553",
                },
                {
                    "Text": "上海",
                    "Value": "360",
                }, {
                    "Text": "大西洋大西洋大西洋大西洋大西洋大西洋大西洋",
                    "Value": "365",
                },
                {
                    "Text": "广州",
                    "Value": "4105",
                }, {
                    "Text": "北冰洋",
                    "Value": "510",
                },
                {
                    "Text": "深圳",
                    "Value": "3219",
                },
                {
                    "Text": "天津",
                    "Value": "99402",
                },
                {
                    "Text": "合肥",
                    "Value": "519",
                },
                {
                    "Text": "苏州",
                    "Value": "518",
                },
                {
                    "Text": "南京",
                    "Value": "517",
                },
                {
                    "Text": "无锡",
                    "Value": "525",
                },
                {
                    "Text": "大东北",
                    "Value": "528",
                },
                {
                    "Text": "大西北",
                    "Value": "533",
                },
                {
                    "Text": "非洲",
                    "Value": "538",
                },
                {
                    "Text": "欧洲",
                    "Value": "537",
                },
                {
                    "Text": "南美洲",
                    "Value": "536",
                }
            ],
            selectProductItem: [],
            productListSelect: [{
                    "checked": false,
                    "Id": "1",
                    "productCode": "SP20150717002",
                    "productName": "三角阀",
                    "spec": "桶",
                    "prope": "通用型",
                    "stockCount": "12",
                    "inventoryCount": "12",
                    "remark": "",
                    "barCode": "",
                    "img": "../content/static/img/no_pic.png",
                    "status": ""
                },
                {
                    "checked": false,
                    "Id": "2",
                    "productCode": "SP20150717002",
                    "productName": "劲霸皮革清洗剂",
                    "spec": "桶",
                    "prope": "5L",
                    "stockCount": "1",
                    "inventoryCount": "1",
                    "remark": "",
                    "barCode": "",
                    "img": "../content/static/img/no_pic.png",
                    "status": ""
                }, {
                    "checked": false,
                    "Id": "3",
                    "productCode": "SP20150717002",
                    "productName": "快卫内饰清洗剂",
                    "spec": "瓶",
                    "prope": "500ML",
                    "stockCount": "52",
                    "inventoryCount": "52",
                    "remark": "",
                    "barCode": "",
                    "img": "../content/static/img/no_pic.png",
                    "status": ""
                }, {
                    "checked": false,
                    "Id": "4",
                    "productCode": "SP20150717002",
                    "productName": "漆面至尊镀晶大套装",
                    "spec": "套",
                    "prope": "",
                    "stockCount": "14",
                    "inventoryCount": "15",
                    "remark": "",
                    "barCode": "",
                    "img": "../content/static/img/no_pic.png",
                    "status": ""
                }
            ],
            productChooseList: [],
        };
        vmData = $.extend(vmData, baseData);
        var vmMothod = {
            init: function () {},
            lookShow: function (obj) {
                vm.lookModal.show = true;
            },
            detailShow: function (obj) {

                vm.detailModal.show = true;
            },
            addShow: function () {
                vm.addModal.show = true;
            },
            selectProduct: function () {
                vm.productSelectModal.show = true;
            },
            productChooseClick: function (e) {
                if (e.checked) {
                    vm.productChooseList.forEach(function (a, v) {
                        if (a.Id = v.Id)
                            vm.productChooseList.splice(v, 1);
                    });
                } else {
                    vm.productChooseList.push(e);
                }
            }
        };
        vmMothod = $.extend(vmMothod, baseCommonFunction);
        var vm = new Vue({
            el: '.content-container',
            data: vmData,
            methods: vmMothod,
            computed: {
                //     pokerHistory:function() {
                //        // for (let i = 0; i < productChooseList.length; i++) {
                //             　return this.productChooseList[0].stockCount;
                //         //}
                // 　　　
                // 　　}
            },
            watch: {
                productChooseList: {
                    handler(newValue, oldValue) {
                        for (let i = 0; i < newValue.length; i++) {
                            if (oldValue[i] != newValue[i]) {
                                console.log(newValue)
                            }
                        }
                    },
                    deep: true
                }
            }
        });
        vm.init();
    </script>
</body>

</html>